package com.jiu345.users.service;


import com.jiu345.api.pojo.vo.CartVo;
import com.jiu345.core.page.PageQuery;
import com.jiu345.core.page.TableDataInfo;
import com.jiu345.users.pojo.Order;
import com.jiu345.users.pojo.bo.CartBo;
import com.jiu345.users.pojo.bo.NowBuyBo;
import com.jiu345.users.pojo.bo.OrderBo;
import com.jiu345.users.pojo.vo.OrderVo;
import org.dromara.common.core.domain.R;

import java.util.List;

/**
 * package:IUserService
 *
 * @author MrLei QQ:235921049
 * desc:用户订单
 * @Date 2024.08.01 19:33
 */
public interface IOrderService {

    /*根据用户ID查询所有订单*/
    TableDataInfo<Order> queryPageList(Order bo, PageQuery pageQuery);

//    Boolean insertByBo(OrderBo bo);
    /*查询用户待提交订单的商品列表*/
    OrderVo createByCart();
    /*查询用户立即购买商品*/
    OrderVo nowBuy(NowBuyBo bo);
    /*新增用户订单*/
    Order insertByBo(OrderBo bo);
}
